auto.waitFor();

var myFunc = require("./myCommonFunction.js");


threads.start(function () {
    while(text('姓名').findOnce() == null) {
        var a = text('立即兑换').findOne(1000);
        if(a != null) {
            a.click();
        }
    }
    //解密需要, 不能删
    let key = myFunc.key
    var inp = myFunc.jiemi('联通号码');
    while(text(inp).findOnce() == null) {
        setText(inp);
        sleep(200);
    }
    
    sleep(500);
    
    click(720, 3000);

});


var word = '球';

textContains(word).findOne().click();

